package com.ruoyi.procured.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 申请款主表：tb_payment，明细表：tb_payment_request
 */
@TableName(value="tb_payment")
public class Payment {

    private static final long serialVersionUID = 1L;

    /**  申请款主表ID*/
    @TableId(value = "payment_id")
    private String paymentId;

    /**  采购订单（关联：tb_procured_orders）*/
    @TableField("procured_order_id")
    private String procuredOrderId;

    /**  采购计划（关联：tb_procured_plan）*/
    @TableField("procured_plan_id")
    private String procuredPlanId;

    public Payment(String paymentId, String procuredOrderId, String procuredPlanId) {
        this.paymentId = paymentId;
        this.procuredOrderId = procuredOrderId;
        this.procuredPlanId = procuredPlanId;
    }

    public String getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(String paymentId) {
        this.paymentId = paymentId;
    }

    public String getProcuredOrderId() {
        return procuredOrderId;
    }

    public void setProcuredOrderId(String procuredOrderId) {
        this.procuredOrderId = procuredOrderId;
    }

    public String getProcuredPlanId() {
        return procuredPlanId;
    }

    public void setProcuredPlanId(String procuredPlanId) {
        this.procuredPlanId = procuredPlanId;
    }

    @Override
    public String toString() {
        return "Payment{" +
                "paymentId='" + paymentId + '\'' +
                ", procuredOrderId='" + procuredOrderId + '\'' +
                ", procuredPlanId='" + procuredPlanId + '\'' +
                '}';
    }
}
